﻿
using DataService.Core.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UnitTest
{
    public static class TestStackFrame
    {
        public static void Test1()
        {
            Test2();
        }
        public static void Test2()
        {
            Action action = () =>
            {
                Console.WriteLine("************开始action************");
                Func<string> func = () =>
                {
                   
                  var list=  StackFrameHelper.GetStackFrame();
                    foreach (var item in list)
                    {
                        Console.WriteLine(item);
                    }
                    string ss = string.Join(">", list);
                    Console.WriteLine(ss);
                    return "";
                };
                func.Invoke();
                Console.WriteLine("************结束action************");
            };
            action.Invoke();
        }
    }
}
